// 用户相关的api
import request from '@/utils/request'
console.log(request)
// 登录
export const loginApi = data => {
  return request({
    url: '/auth/login',
    method: 'POST',
    data: data
  })
}

// 获取管理员相关信息
export const getAdminInfoApi = data => {
  return request({
    url: '/auth/currentUser',
    method: 'GET'
  })
}

// 获取统计数据
export const getDataApi = data => {
  return request({
    url: '/analysis/DailyVisitTrend',
    method: 'GET'
  })
}
